﻿using IBLL;
using IDAL;
using Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BLL
{
    public class HotelTypeBLL : IHotelTypeBLL
    {
        public HotelTypeBLL(IHotelDAL<HotelTypeModel> dal)
        {
            Dal = dal;
        }

        public IHotelDAL<HotelTypeModel> Dal { get; }

        public Task<int> AddHotelType(HotelTypeModel hoteltype)
        {
            return Dal.AddHotelAsync(hoteltype);
        }

        public List<HotelTypeModel> HotelTypeShow()
        {
            return Dal.GetHotelALL().ToList();
        }
    }
}
